package main

import (
	"bawei_2112a_shop/bootstrap"
	"bawei_2112a_shop/common"
	"fmt"
)

func main() {
	bootstrap.InitApp()
	// 发布商品 MySQL
	//goods := mysql.Goods{
	//	GoodsTitle: "汪超新款成人用品 15pro",
	//	GoodsPrice: 6999,
	//	GoodsStock: 10,
	//	GoodsCover: "https://bkimg.cdn.bcebos.com/pic/6a600c338744ebf81a4ceeffaaaec02a6059242d09e1",
	//	Status:     1,
	//}
	//goods.CreateGoods()
	//// 添加虚拟库存 Redis
	//redis.IncrGoodsStock(int64(goods.ID), goods.GoodsStock)
	//// 同步到 es
	//elasticsearch.AddGoodsToEs("goods", &goods)

	//elasticsearch.GetGoodsFromEs("GoodsTitle", "成人用品", "goods")
	fmt.Println(common.GenerateOrderNo())
}
